﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditTask.aspx.cs" Inherits="TaskWebApplicationUI.EditTaskView"
    ValidateRequest="false" MasterPageFile="WebTasksMaster.Master" Theme="TaskTheme" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRatingControl" TagPrefix="dx" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxCallback" Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPopupControl" Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxCallbackPanel" Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MasterPagePlaceHolder" runat="server">
    <script type="text/javascript">
        // <![CDATA[
        var titles = ["Не удовлетворен", "Скорее неудовлетворен", "50/50", "Скорее удовлетворен", "Полностью удовлетворен"];
        var prevTitle;
        function myRating_Init(s, e) {
            var value = s.GetValue();
            if (value > 0)
                lbMyVote.SetText(titles[value - 1]);
            else
                lbMyVote.SetText('Ваша оценка');
        }
        function myRating_ItemClick(s, e) {
            prevTitle = titles[e.index];
            //if (e.index < 2) {
                pcLogin.Show();
            //} else {
                cbVoting.PerformCallback();
            //}
        }
        function myRating_ItemMouseOver(s, e) {
            prevTitle = lbMyVote.GetText();
            lbMyVote.SetText(titles[e.index]);
        }
        function myRating_ItemMouseOut(s, e) {
            lbMyVote.SetText(prevTitle);
        }
        function VotingCallbackComplete(s, e) {
            var ratingValues = e.result.split(' ');
            var labelText = "Выбрана оценка (" + ratingValues[2] + ")";
            lbAllVotes.SetText(labelText);

        }
        // ]]>
    </script>
    
    <p align="center">
        <asp:Label ID="Department" runat="server" Text="Отдел" Font-Bold="False" SkinID="Department"></asp:Label>
    </p>
    <div>
        <table class="spisok" style="width: 100%;">
            <tr>
                <td>
                    <asp:Label ID="ErrorMessageLabel" runat="server" Font-Bold="False" ForeColor="Red"
                        SkinID="Error" CssClass="bodyt"></asp:Label>
                    <p align="left">
                        &nbsp;<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:LinkButton ID="TaskNameLabel" runat="server" ForeColor="#000099" SkinID="TaskName"
                                    Font-Bold="True" Font-Italic="False" OnClick="TaskNameLabel_Click"></asp:LinkButton>
                                <asp:TextBox ID="TaskNameEdit" runat="server" CssClass="bodyt" Visible="False" Width="575px"></asp:TextBox>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </p>
                </td>
                <td align="right">
                    <asp:ImageButton ID="DeleteTaskLB" runat="server" ImageUrl="images/Delete.png" OnClick="ImageButton1_Click"
                        ToolTip="Удалить задачу" Width="24px" />
                    <asp:ImageButton ID="CloseImmediately" runat="server" ImageUrl="images/closeforce.png"
                        OnClick="ImageButton1_Click1" ToolTip="Закрыть задачу без подтверждения" Width="22px" />
                    <asp:ImageButton ID="BCloseTask" runat="server" ImageUrl="images/close.png" OnClick="ImageButton1_Click2"
                        ToolTip="Закрыть задачу" Width="24px"/>
                </td>
            </tr>
        </table>
        <table class="spisok" style="width: 100%;">
            <tr>
                <th style="width: 50%;" valign="top">
                    <table class="spisok" style="width: 100%;">
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label1" runat="server" Text="Номер задачи:"></asp:Label>
                            </th>
                            <td>
                                <asp:Label ID="TaskNumberLabel" runat="server" Font-Bold="True" SkinID="Details"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label4" runat="server" Text="Статус:"></asp:Label>
                            </th>
                            <td>
                                <asp:Label ID="TaskStatusLabel" runat="server" SkinID="Details"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label5" runat="server" Text="Открыта:"></asp:Label>
                            </th>
                            <td>
                                <asp:Label ID="DateCreateLabel" runat="server" SkinID="Details"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label6" runat="server" Text="Дата завершения:"></asp:Label>
                            </th>
                            <td>
                                <dx:ASPxDateEdit ID="dxExpirationDate" runat="server" EditFormat="DateTime" EditFormatString="dd/MM/yyyy HH:mm tt" EnableTheming="True" DateOnError="Null" AllowNull="True">
                                    <TimeSectionProperties Visible="True">
                                    </TimeSectionProperties>
                                </dx:ASPxDateEdit>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label7" runat="server" Text="Выполнено:"></asp:Label>
                            </th>
                            <td>
                                <asp:TextBox ID="CompleteTextBox" runat="server" Width="33px" CssClass="bodyt" MaxLength="2"></asp:TextBox>
                                <asp:Label ID="PercentLabel" runat="server" Text="%" CssClass="bodyt"></asp:Label>
                                <asp:RegularExpressionValidator ID="CompleteValidator" runat="server" ControlToValidate="CompleteTextBox"
                                    ErrorMessage="Формат: не более 2 символов; цифры" ValidationExpression="[0-9]+$"
                                    CssClass="bodyt"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label8" runat="server" Text="Тег:"></asp:Label>
                            </th>
                            <td>
                                <asp:TextBox ID="TagTB" runat="server" Width="200px" CssClass="bodyt" MaxLength="15"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="TagValidator" runat="server" ControlToValidate="TagTB"
                                    CssClass="bodyt" Display="Dynamic" ErrorMessage="Формат: не более 15 символов; буквы; цифры; &quot;.&quot;; &quot;_&quot;"
                                    ValidationExpression="[a-zA-Zа-яА-Я0-9ёЁ._\s]+$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label9" runat="server" Text="Подразделение:"></asp:Label>
                            </th>
                            <td>
                                <asp:DropDownList ID="DepartmentsDDL" runat="server" Width="100%" DataValueField="ID"
                                    DataTextField="Name" CssClass="bodyt">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label10" runat="server" Text="Ответственный:"></asp:Label>
                            </th>
                            <td>
                                <asp:DropDownList ID="ExecutorsDDL" runat="server" Width="100%" DataValueField="ID"
                                    DataTextField="Name" AppendDataBoundItems="True" CssClass="bodyt">
                                    <asp:ListItem Value="00000000-0000-0000-0000-000000000000">Не определен</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label11" runat="server" Text="Приоритет:"></asp:Label>
                            </th>
                            <td>
                                <asp:DropDownList ID="PrioritiesDDL" runat="server" DataTextField="Name" DataValueField="ID"
                                    Width="100%" CssClass="bodyt">
                                    <asp:ListItem Value="0">Задача не терпит отлагательств (7)</asp:ListItem>
                                    <asp:ListItem Value="1">Очень высокий (6)</asp:ListItem>
                                    <asp:ListItem Value="2">Высокий (5)</asp:ListItem>
                                    <asp:ListItem Value="3">Выше среднего (4)</asp:ListItem>
                                    <asp:ListItem Value="4">Средний (3)</asp:ListItem>
                                    <asp:ListItem Value="5">Низкий (2)</asp:ListItem>
                                    <asp:ListItem Value="6">Очень Низкий (1)</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label13" runat="server" Text="Время работы:"></asp:Label>
                            </th>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <asp:ImageButton ID="StartProcess" runat="server" ImageUrl="images/Play.png" OnClick="StartProcess_Click"
                                            ToolTip="Начать работу с задачей" CssClass="bodyt" />
                                        <asp:ImageButton ID="PauseProcess" runat="server" ImageUrl="images/Pause.png" OnClick="PauseProcess_Click"
                                            ToolTip="Остановить работу с задачей" CssClass="bodyt" />
                                        <asp:Label ID="CurrentTimeLabel" runat="server" CssClass="bodyt"></asp:Label>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <dx:ASPxRatingControl ID="myRating" runat="server" Value="0" FillPrecision="Exact" ItemHeight="19" ItemWidth="19" EnableTheming="True" Theme="DevEx">
                                    <ClientSideEvents Init="myRating_Init" ItemClick="myRating_ItemClick" ItemMouseOver="myRating_ItemMouseOver"
                                        ItemMouseOut="myRating_ItemMouseOut" />
                                </dx:ASPxRatingControl>
                                <dx:ASPxCallback ID="cbVoting" runat="server" ClientInstanceName="cbVoting" OnCallback="cbVoting_Callback">
                                    <ClientSideEvents CallbackComplete="VotingCallbackComplete" />
                                </dx:ASPxCallback>
                            </th>
                            <td>
                                <dx:ASPxLabel ID="lbMyVote" runat="server" ClientInstanceName="lbMyVote" Font-Size="8pt" />

                            </td>
                        </tr>
                        <tr>
                            <th>
                                <dx:ASPxLabel ID="lbAllVotes" runat="server" ClientInstanceName="lbAllVotes" Font-Size="8pt" />
                            </th>
                        </tr>
                    </table>
                </th>
                <td style="width: 50%;">
                    <table class="spisok" style="width: 100%;">
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label3" runat="server" Text="Владелец:"></asp:Label>
                            </th>
                            <td>
                                <span class="bodyt" onclick="getShortName(this);">
                                    <%= TaskOwner %>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label45" runat="server" Text="Ответственный:"></asp:Label>
                            </th>
                            <td>
                                <span class="bodyt" onclick="getShortName(this); ">
                                    <%= ExecutorName %>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <br />
                        </tr>
                        <tr>
                            <th style="width: 1%">
                                <asp:Label ID="Label12" runat="server" Text="Участники:" Font-Bold="True"></asp:Label>
                            </th>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                                    <ContentTemplate>
                                        <asp:TextBox ID="UsersSearchTB" runat="server" AutoPostBack="True" OnTextChanged="ParticipantSearch_TextChanged"
                                            Wrap="False" Width="65px" CssClass="bodyt" ToolTip="Введите буквы, содержащиеся в ФИО пользователя, выберите в выпадающем списке пользователя для добавления."></asp:TextBox>
                                        <asp:DropDownList ID="UsersDDL" runat="server" DataTextField="Text" DataValueField="ID"
                                            CssClass="bodyt">
                                        </asp:DropDownList>
                                        <asp:ImageButton ID="AddPartcipant" runat="server" ImageUrl="images/adduser.png"
                                            OnClick="ImageButton1_Click4" ToolTip="Добавить пользователя в участники" />
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <asp:UpdatePanel ID="ParticipantsArea" runat="server">
                                    <ContentTemplate>
                                        <asp:GridView ID="ParticipantsGridView" runat="server" AutoGenerateColumns="False"
                                            BorderWidth="1px" GridLines="Vertical" CellPadding="4" BorderStyle="None" Width="100%"
                                            ShowHeader="False" OnRowDeleting="ParticipantsView_RowDeleting" DataKeyNames="ID"
                                            CssClass="bodytr" EnableModelValidation="True">
                                            <AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
                                            <Columns>
                                                <asp:TemplateField HeaderText=" " SortExpression="Name">
                                                    <ItemTemplate>
                                                        <span onclick=" getShortName(this); ">
                                                            <%#Eval("Name") %></span>
                                                    </ItemTemplate>
                                                    <HeaderStyle CssClass="bodyt" />
                                                    <ItemStyle CssClass="bodyt" Height="0%" VerticalAlign="Top" Width="1%" Wrap="False" />
                                                </asp:TemplateField>
                                                <asp:CommandField ShowDeleteButton="True" DeleteText="Удалить" ItemStyle-CssClass="bodyt"
                                                    HeaderStyle-CssClass="bodyt" ItemStyle-Wrap="false" ItemStyle-Width="1%">
                                                    <HeaderStyle CssClass="bodyt" />
                                                    <ItemStyle CssClass="bodyt" Width="1%" Wrap="False" />
                                                </asp:CommandField>
                                                <asp:BoundField DataField="ID" ItemStyle-CssClass="bodyt" HeaderStyle-CssClass="bodyt"
                                                    ItemStyle-Wrap="false" ItemStyle-Width="1%" Visible="False">
                                                    <HeaderStyle CssClass="bodyt"></HeaderStyle>
                                                    <ItemStyle Wrap="False" CssClass="bodyt" Width="1%"></ItemStyle>
                                                </asp:BoundField>
                                            </Columns>
                                            <RowStyle BackColor="#EBE4DE"></RowStyle>
                                        </asp:GridView>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <asp:Label ID="Label16" runat="server" Font-Bold="True" Text="Файлы:"></asp:Label>
                            </th>
                            <td valign="top">
                                <asp:Panel ID="FilesPanel" runat="server">
                                    <asp:FileUpload ID="FileUpload1" runat="server" Width="50%" CssClass="bodyt" />
                                    <br />
                                    <asp:FileUpload ID="FileUpload2" runat="server" Width="50%" CssClass="bodyt" />
                                    <br />
                                    <asp:FileUpload ID="FileUpload3" runat="server" Width="50%" CssClass="bodyt" />
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr class="bodyt">
                            <asp:GridView ID="FileHistoryEntriesGridView" runat="server">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <td class="bodyt">
                                                <%#Eval("Date") %>
                                            </td>
                                            <td class="bodyt">
                                                <%#Eval("Comment") %>
                                            </td>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>



        <table class="spisok" style="width: 100%;">
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                        <ContentTemplate>
                            <asp:CheckBox ID="ReminderCB" runat="server" Text="Напомнить" AutoPostBack="True"
                                OnCheckedChanged="ReminderCB_CheckedChanged" CssClass="bodyt" />
                            <asp:Panel ID="ReminderPanel" runat="server" Visible="False">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label2" runat="server" Text="Время:" CssClass="bodyt"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxDateEdit ID="dxReminderDate" runat="server" EditFormat="DateTime" EditFormatString="dd/MM/yyyy HH:mm tt" EnableTheming="True" DateOnError="Null" AllowNull="True">
                                                <TimeSectionProperties Visible="True">
                                                </TimeSectionProperties>
                                            </dx:ASPxDateEdit>

                                        </td>
                                        <td>
                                            <asp:Label ID="Label17" runat="server" Text="Текст:" CssClass="bodyt"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TextReminderTB" runat="server" CssClass="bodyt" MaxLength="50" Width="578px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    <CKEditor:CKEditorControl ID="Editor" runat="server"></CKEditor:CKEditorControl>
                    <table id="Table1" cellspacing="0" cellpadding="0" width="100%" style="height: 10px">
                        <tr>
                            <td align="left">
                                <asp:ImageButton ID="BtnAddComment" runat="server" ImageUrl="images/save.png" OnClick="ImageButton1_Click3"
                                    ToolTip="Сохранить изменения" Width="48px" />
                                <asp:ImageButton ID="BtnUnClose" runat="server" ImageUrl="images/unarchive.png" OnClick="BtnUnArchive_Click"
                                    ToolTip="Вернуть в работу" Width="48px" />
                            </td>
                            <td align="right">
                                <asp:ImageButton ID="BtnSendContent" runat="server" ImageUrl="images/sendcontent.png"
                                    OnClick="BtnSendContent_Click" ToolTip="Отправить себе содержимое" Width="48px" />
                            </td>
                        </tr>
                    </table>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <asp:CheckBox ID="SystemMessageCheckBox" runat="server" AutoPostBack="True" CssClass="bodyt"
                                OnCheckedChanged="CheckBox1_CheckedChanged1" Text="Показать системные сообщения"
                                Enabled="False" Visible="False" />
                            <asp:GridView ID="HistoryEntriesGridView" runat="server" AutoGenerateColumns="False"
                                BorderWidth="1px" GridLines="Vertical" CellPadding="0" CellSpacing="10" BorderStyle="None"
                                Width="100%" AllowSorting="True" CssClass="grid-view" OnSorting="HistoryEntriesGridView_Sorting"
                                EnableModelValidation="True">
                                <HeaderStyle Font-Bold="True"></HeaderStyle>
                                <AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
                                <Columns>
                                    <asp:BoundField HeaderText="Дата/Время" DataField="Date" ItemStyle-CssClass="bodyt"
                                        HeaderStyle-CssClass="bodyt" SortExpression="Date" ItemStyle-Wrap="false" ItemStyle-Width="1%"
                                        ItemStyle-Height="0%" ItemStyle-VerticalAlign="Top" DataFormatString="{0:d} {0:t}">
                                        <HeaderStyle CssClass="bodyt"></HeaderStyle>
                                        <ItemStyle VerticalAlign="Top" Wrap="False" CssClass="bodyt" Height="0%" Width="1%"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Комментарий" DataField="Comment" ItemStyle-CssClass="bodytr"
                                        HeaderStyle-CssClass="bodyt" SortExpression="Comment" ItemStyle-Height="0%" ItemStyle-VerticalAlign="Top"
                                        HtmlEncode="False">
                                        <HeaderStyle CssClass="bodyt"></HeaderStyle>
                                        <ItemStyle VerticalAlign="Top" CssClass="bodytext" Height="0%"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="Автор" SortExpression="Login">
                                        <ItemTemplate>
                                            <span onclick=" getShortName(this); ">
                                                <%#Eval("Login") %></span>
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="bodyt" />
                                        <ItemStyle CssClass="bodyt" Height="0%" VerticalAlign="Top" Width="1%" Wrap="False" />
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle BackColor="#F0F0F0"></RowStyle>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </div>

    <dx:ASPxPopupControl ID="pcLogin" runat="server" CloseAction="CloseButton" Modal="True"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcLogin"
        HeaderText="Комментарий к оценке" AllowDragging="True" PopupAnimationType="Slide" EnableViewState="False" Width="180px">
        <ClientSideEvents PopUp="function(s, e) { ASPxClientEdit.ClearGroup('entryGroup'); mRatingComment.Focus(); }" />
        <ContentCollection>
            <dx:PopupControlContentControl runat="server">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="pcmCellText">
                            <dx:ASPxMemo ID="mRatingComment" runat="server" Width="150px" ClientInstanceName="mRatingComment" Height="46px">
                                <%--<ValidationSettings EnableCustomValidation="True" ValidationGroup="entryGroup" SetFocusOnError="True"
                                    ErrorDisplayMode="Text" ErrorTextPosition="Bottom" CausesValidation="True">
                                    <RequiredField ErrorText="Введите текст" IsRequired="True" />
                                    <RegularExpression ErrorText="Комментарий" />
                                    <ErrorFrameStyle Font-Size="10px">
                                        <ErrorTextPaddings PaddingLeft="0px" />
                                    </ErrorFrameStyle>
                                </ValidationSettings>--%>
                            </dx:ASPxMemo>
                        </td>
                    </tr>
                    <tr>
                        <td class="pcmCellCaption" valign="top">
                            <dx:ASPxLabel ID="lblUsername1" runat="server" Text="Комментарий к оценке:" AssociatedControlID="mRatingComment">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="pcmButton">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="right">
                                            <dx:ASPxButton ID="btOK" runat="server" Text="OK" Width="80px" AutoPostBack="False">
                                                <ClientSideEvents Click="function(s, e) { if(ASPxClientEdit.ValidateGroup('entryGroup')){pcLogin.Hide();cbVoting.PerformCallback();} }" />
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <div style="width: 8px;">
                                            </div>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxButton ID="btCancel" runat="server" Text="Cancel" Width="80px" AutoPostBack="False">
                                                <ClientSideEvents Click="function(s, e) { pcLogin.Hide(); }" />
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </dx:PopupControlContentControl>
        </ContentCollection>
        <ContentStyle>
            <Paddings PaddingBottom="5px" />
        </ContentStyle>
    </dx:ASPxPopupControl>
</asp:Content>
